#!/bin/bash
set -o nounset                              # Treat unset variables as an error
echo '
      set terminal epslatex color colortext
    set output "watt_1_streams_final.tex"
 set title "Network speed with 1 stream"
      set xlabel "Time(s)"
      set ylabel "Mb/s"
      set key center right
      f(x) = mean_y
      fit f(x) "data/watt_1_streams_final" u 1:2 via mean_y
      set label 3 gprintf("Mean = %gMb/s", mean_y) at  68,4096
      plot "data/watt_1_streams_final" using 1:9 with line title "Stream"
' |gnuplot -persist      
